package com.itheima.io1.mybyteststream2;

import java.io.FileInputStream;
import java.io.IOException;

/**
 * @author zhangbaiyan
 * @date 2024-09-20 12:43
 * @description:
 * @version:
 */
public class test3 {
    public static void main(String[] args) throws IOException {
        //字输入流循环读取
        
        //1.创建对象
        FileInputStream fis = new FileInputStream("a.txt");
        //循环读取
        int b;
        while((b=fis.read())!=-1){
            System.out.print((char)b);
        }

        //3.释放资源
        fis.close();
    }
}
